package mortal.game.view.mainUI
{
	import Message.BroadCast.*;
	import Message.Game.*;
	import Message.Public.*;
	
	import com.gengine.global.*;
	import com.gengine.utils.*;
	import com.greensock.*;
	import com.greensock.easing.*;
	import com.mui.controls.*;
	import com.mui.core.*;
	import com.mui.manager.*;
	
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	import flash.utils.*;
	
	import mortal.common.global.*;
	import mortal.component.gconst.*;
	import mortal.game.cache.*;
	import mortal.game.events.*;
	import mortal.game.manager.*;
	import mortal.game.mvc.*;
	import mortal.game.resource.info.*;
	import mortal.game.scene.map.*;
	import mortal.game.scene.player.info.*;
	import mortal.game.view.common.*;
	import mortal.game.view.shortcuts.Shortcuts;
	import mortal.mvc.core.*;

	//import mortal.game.view.award.*;
	//import mortal.game.view.common.hintIcon.*;
	
	public class GameUI extends UILayer
	{
		private var _navbar:MovieClip;/*
		private var _smallMap:SmallMap;
		private var _pointText:GLabel;
		private var _navSprite:NavSprite;
		private var _expbar:ExpBar;
		private var _roleAvatar:RoleAvatar;
		private var _aimAvatar:AimAvatar;
		private var _dailySwf:DailyIconSwf;*/
		private var _smeltButton:GButton;
		private var _shortcuts:Shortcuts;
		//private var _vipCard:VipCard;
		//private var _petDrugBagSprite:PetDrugBagSprite;
		private var _teamAvatar:Array;/*
		private var _petAvatar:PetAvatar;
		private var _msgTipBtn:MsgTipsBtn;
		private var _dailyAward:DailyAwardPanel;
		private var _levelAward:LevelAwardPanel;
		private var _npcAvatar:NPCAvatar;*/
		private var _teamAvatarSprite:Sprite;
		private var _teamShowButton:GButton;
		//private var _favoriteView:FavoriteView;
		//private var _turnedHintIcon:TurnedHintIcon;
		
		private static const NavWidth:int = 967;
		private static const ChatWidth:int = 280;
		
		private static var _isFirstAdd:Boolean = true;
		
		public function GameUI()
		{
			this._teamAvatar = [];
			super();
			this.init();
			tabChildren = false;
		}
		
		private function init() : void
		{
			
		}
		
		public function guideHideTips(type:String) : void
		{
			/*
			if (Cache.instance.guide.petGuide){
				if (type == ModuleType.Pets){
					if (GuideArrowManager.guideArrow.parent == this){
						GuideArrowManager.hideGuideArrow();
					};
					HighlightManager.instance.glowEffectButton(this._navbar.getChildByName(type), false);
				};
			} else {
				if (type == ModuleType.Gua){
					if (GuideArrowManager.guideArrow.parent == this._smallMap){
						GuideArrowManager.hideGuideArrow();
					};
					HighlightManager.instance.flashMaskButton(this._smallMap.mapMain.getChildByName(type), false);
				} else {
					if (type == ModuleType.Fb){
						if (GuideArrowManager.guideArrow.parent == this){
							GuideArrowManager.hideGuideArrow();
						};
						HighlightManager.instance.glowEffectButton(this._navbar.getChildByName(type), false);
					} else {
						if (type == ModuleType.Activity){
							if (GuideArrowManager.guideArrow.parent == this._smallMap){
								GuideArrowManager.hideGuideArrow();
							};
							HighlightManager.instance.glowEffectButton(this._smallMap.mapMain.getChildByName(type), false);
						} else {
							if (type == ModuleType.Skills){
								if (GuideArrowManager.guideArrow.parent == this){
									GuideArrowManager.hideGuideArrow();
								};
								HighlightManager.instance.glowEffectButton(this._navbar.getChildByName(type), false);
							} else {
								if (type == ModuleType.Build){
									if (GuideArrowManager.guideArrow.parent == this){
										GuideArrowManager.hideGuideArrow();
									};
									HighlightManager.instance.glowEffectButton(this._navbar.getChildByName(type), false);
								} else {
									if (type == ModuleType.Group){
										if (GuideArrowManager.guideArrow.parent == this){
											GuideArrowManager.hideGuideArrow();
										};
									};
								};
							};
						};
					};
				};
			};*/
		}
		
		public function addShortcuts(obj:DisplayObject) : void
		{
			this._shortcuts = (obj as Shortcuts);
			this._shortcuts.x = 85;
			this._shortcuts.y = -47;
			this._navbar.addChild(this._shortcuts);
		}
	}
}